﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entangle
{
    class RequestException : Exception
    {
        public const int INVALID_SYNCH_STATUS = 0;
        private int errorCode;
        public RequestException(string message, int code)
            : base(message)
        {
            errorCode = code;
        }

        public Message ErrorMessage { get { return Entangle.Message.CreateErrorMessage(MessageType.ERROR, Message); } }
        public int ErrorCode { get { return errorCode; } }
    }
}
